<%@page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<c:if test="${log!=null}">
	<c:set var="action" value="${ctx}/log/update?navtabid=${navtabid}" scope="page"/>
</c:if>
<c:if test="${log==null}">
	<c:set var="action" value="${ctx}/log/insert?navtabid=${navtabid}" scope="page"/>
</c:if>
<div class="pageContent">
	<form:form modelAttribute="user" id="form1" action="${action}"
	 method="post" onsubmit="return validateCallback(this, dialogAjaxDone);">
			<div class="pageFormContent" layoutH="58">
			<input type="hidden" id="id" name="id" value="${log.id}" />
			<p>
				<label>userId：</label> <input name="userId" id="userId" type="text"
					value="${log.userId}" />
			</p>
			<p>
				<label>logType:</label> <select name="logType" id="logType"
					class="select">
					<option value="">请选择</option>
					<option value="LODGE_REPORT"
						${log.logType eq  "LODGE_REPORT" ? 'selected="selected"' : ''}>LODGE_REPORT</option>
					<option value="LODGE_EA"
						${log.logType eq  "LODGE_EA" ? 'selected="selected"' : ''}>LODGE_EA</option>
				</select>
			</p>
			<p>
				<label>logLevel:</label> <select name="logLevel" id="logLevel"
					class="select">
					<option value="">请选择</option>
					<option value="ERROR"
						${log.logLevel eq  "ERROR" ? 'selected="selected"' : ''}>ERROR</option>
					<option value="WARN"
						${log.logLevel eq  "WARN" ? 'selected="selected"' : ''}>WARN</option>
					<option value="INFO"
						${log.logLevel eq  "INFO" ? 'selected="selected"' : ''}>INFO</option>
				</select>
			</p>
			<p>
				<label>ipAddress：</label> <input name="ipAddress" type="text" class="required ip"
					id="ip" value="${log.ipAddress}" />
			</p>
			<p>
				<label>name：</label> <input name="name" type="text" id="name"
					value="${log.name}" />
			</p>
			<p>
				<label>content：</label>
				<textarea id="content" name="content" cols="50" rows="5" class="required">${log.content}</textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="reset">清空</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
			</ul>
		</div>
	</form:form>
</div>
